﻿@model GetCase
@{
    Layout = "~/Views/Shared/_layoutpopup.cshtml";
}
<div class="servicePage">
<h3>ขอทุนการศึกษา</h3>
<div class="boxResult">
    <div>@Multi.TobeCustomer : </div>
    <div>@(Model.customer)</div>
</div>
<div class="boxResult">
    <div>@Multi.Objective_text : </div>
    <div><span id="p5_objective_text">@Model.objective_text</span></div>
</div>
<div class="boxResult">
    <div>@Multi.secret_id : </div>
    <div><span id="p5_ชั้นความลับ">@Model.secret_text</span></div>
    <div>ชั้นความเร็ว : </div>
    <div><span id="p5_ชั้นความเร็ว">@Model.severity_text</span></div>
    <div>ชั้นความสำคัญ : </div>
    <div><span id="p5_ชั้นความสำคัญ">@Model.priority_text</span></div>
</div>
<div class="boxResult">
    <div>@Multi.contact1 : </div>
    <div>
        <span id="p5_ชื่อผู้ติดต่อ">@{
            var orgO = (Model.list_case_org_owner ?? new List<CaseOrgOwner>())
                .Select(o => o.org_text).ToArray();
            @:@string.Join(", ", orgO)  ??? 
            }</span>
    </div>
</div>
<div class="boxResult">
    <div>@Multi.customer : </div>
    <div><span id="p5_ชื่อผู้เดือดร้อน">@string.Join(", ", orgO) ??? </span></div>
</div>
<div class="boxResult">
    <div>@Multi.summary : </div>
    <div><span id="p5_summary">@Model.summary</span></div>
</div>
<div class="boxResult">
    <div>@Multi.detail : </div>
    <div><span id="p5_รายละเอียดของเรื่อง">@Model.detail</span></div>
</div>
<div class="boxResult">
    <div>@Multi.CaseTypeOrgOwne : </div>
    <div><span id="p5_CaseTypeOrgOwne">@Model.case_org_status_text</span></div>
</div>
<div class="boxResult">
    <div>@Multi.defendent : </div>
    <div><span id="p5_defendent">@Model.defendant</span></div>
</div>
<div class="boxResult">
    <div>@Multi.used_inform_with : </div>
    <div><span id="p5_used_inform_with">@Model.used_inform_with</span></div>
</div>
<div class="boxResult">
    <div>@Multi.case_area : </div>
    <div><span id="p5_case_area">@Model.case_area @Model.subdistrict_text @Model.district_text @Model.priority_text @Model.postcode</span></div>
</div>
<div id="map_canvas" style="width: 500px; height: 350px;"></div>
<div class="boxResult">
    <div>@Multi.date_occurrenced_from_ : </div>
    <div>
        <span id="p5_date_occurrenced_from">
            @(Model.date_occurrenced_from == null ? "" : Model.date_occurrenced_from.Value.ToString("d/M/yyyy"))
        </span>
    </div>
    <div>@Multi.time_occurrenced : </div>
    <div>
        <span id="p5_time_occurrenced">@(Model.date_occurrenced_to == null ? "" : Model.date_occurrenced_to.Value.ToString("d/M/yyyy"))
        </span>
    </div>
</div>

<div class="boxResult">
    <div>@Multi.is_in_court : </div>
    <div><span id="p5_is_in_court">@(Model.is_in_court == "T" ? "อยู่ในการพิจารณาคดี" : "ไม่อยู่ในการพิจารณาคดี")</span></div>
</div>
<div class="boxResult">
    <div>@Multi.diagnosis_input : </div>
    <div><span id="p5_diagnosis_input">@Model.case_org_summary_result</span></div>
</div>
<div class="boxResult">
    <div>@Multi.status_text : </div>
    <div><span id="p5_span" id="objective_text">@Model.status_text  (@Model.date_closed)</span></div>
</div>

    

<div class="boxBlank"></div>
</div>

<script type="text/javascript" src="~/js/gg_map.js"></script>
<script type="text/javascript">

    var Lat_val = "@Model.latitude";
    var Lng_val = "@Model.longitude";


   

</script>